﻿<UserControl x:Class="Acando.Dynamics.CRM.Silverlight.Library.Dialogs.IncreaseStorageDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:Acando.Dynamics.CRM.Silverlight.Library.Controls"
             MinWidth="700" 
             MinHeight="180" 
             IsEnabled="False"
             Grid.ColumnSpan="2">
    <Grid x:Name="LayoutRoot" Canvas.ZIndex="40">
        <Rectangle Name="pnlBackground" 
                   HorizontalAlignment="Stretch" 
                   VerticalAlignment="Stretch"
                   Fill="Black" 
                   Canvas.ZIndex="1"
                   Opacity="0.4" 
                   Visibility="Visible"/>
        <Border CornerRadius="20" BorderBrush="Black" BorderThickness="4" Background="White" Canvas.ZIndex="2" Width="700" Height="180">
            <Grid x:Name="content" ShowGridLines="False">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="180"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image VerticalAlignment="Stretch"
                       HorizontalAlignment="Stretch"
                       Margin="1,0,0,0" 
                       Grid.Column="0"
                       Source="warning.JPG"/>
                <Grid Grid.Column="1" x:Name="TextSection" ShowGridLines="False">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock x:Name="txtBlockInfo" 
                               Margin="10,10,20,10" 
                               FontSize="20"
                               Grid.Row="0">
                        Please increase the Isolated Storage to 10MB*.  
                    </TextBlock>
                    <StackPanel x:Name="ButtonSection"
                                Grid.Row="1"
                                Orientation="Horizontal"
                                HorizontalAlignment="Right"
                                Margin="0,0,10,0"
                                >
                        <Button x:Name="btnIncrease" 
                                Margin="5"
                                Height="25"
                                Width="70"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Right"
                                Content="OK"/>
                        <Button x:Name="btnCancel"
                                Margin="5"
                                Height="25"
                                Width="70"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Center"
                                Content="Cancel"/>
                    </StackPanel>
                    <TextBlock x:Name="txtB_describtion"
                               Grid.Row="2" 
                               Margin="10"
                               Foreground="Gray"
                               VerticalAlignment="Bottom"
                               HorizontalAlignment="Right">
                        *The increasing will improve the performance of the application. 
                    </TextBlock>
                    
                    <TextBlock x:Name="txtB_messages"
                               Foreground="Red"
                               Grid.Row="3"
                               TextWrapping="Wrap"
                               Margin="4">
                    </TextBlock>
                    
                </Grid>
            </Grid>
        </Border>
    </Grid>
</UserControl>